using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;
using emp.IDAL;
using System.Data;

namespace emp.BLL
{
    public class DuplicateRule
    {
        public DataTable selectDataDupList()
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            return dal.selectDataDupList();
        }

        public DataTable getInvidualColumn()
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            return dal.getInvidualColumn(); 
        }

        public void addrule(string[] strvalue)
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            dal.addrule(strvalue);  
        }

        public bool existsrule(string[] strvalue)
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            return dal.existsrule(strvalue);   
        }

        public DataTable getRuleInfo(string priority)
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            return dal.getRuleInfo(priority);    
        }

        public void updaterule(string[] strvalue)
        {
            IDuplicateRule dal = emp.DALFactory.DuplicateRule.Create();
            dal.updaterule(strvalue);   
        }
    }
}
